package 网易机试;

import java.util.Scanner;

public class 网易题目操作排序2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int n = sc.nextInt();
            long[] a = new long[n];
            for (int i = 0; i < n; i++) {
                a[i] = sc.nextLong();
            }
            solve(a);
        }
        sc.close();
    }

    private static void solve(long[] a) {
        if (a.length % 2 == 0) {
            for (int i = a.length - 1; i >= 0; i -= 2) {
                System.out.print(a[i]);
                System.out.print(" ");
            }
            for (int i = 0; i < a.length - 2; i += 2) {
                System.out.print(a[i]);
                System.out.print(" ");
            }
            System.out.println(a[a.length - 2]);
        } else {
            for (int i = a.length - 1; i >= 0; i -= 2) {
                System.out.print(a[i]);
                System.out.print(" ");
            }
            for (int i = 1; i < a.length - 2; i += 2) {
                System.out.print(a[i]);
                System.out.print(" ");
            }
            System.out.println(a[a.length - 2]);
        }
    }
}
